package com.wocai.jrt.orgadmin.employee.service.spi;

import java.util.List;

import com.wocai.jrt.orgadmin.employee.bean.EmpGroupTreeBean;
import com.wocai.jrt.orgadmin.employee.bean.EmployeeGroupReqBean;
import com.wocai.jrt.orgadmin.employee.model.EmployeeGroup;
import com.wocai.jrt.orgadmin.employee.model.EmployeeGroupBean;
import com.wocai.jrt.orgadmin.investor.bean.EmpBreifBean;
import com.vteba.service.generic.MyBatisService;

/**
 * 理财团队相关的业务service接口。
 * 
 * @author yinlei
 * @date 2015-8-17 19:59:25
 */
public interface EmployeeGroupService extends
		MyBatisService<EmployeeGroup, EmployeeGroupBean, String> {

	EmpGroupTreeBean tree(String orgId);

	EmpGroupTreeBean plannerTree(String orgId);

	EmpGroupTreeBean plannerTreeNotSelect(String orgId);

	EmpGroupTreeBean empTree(String empGroupId);

	int deleteGroup(String groupId);

	int addGroup(EmployeeGroupReqBean model);

	int updateGroupById(EmployeeGroupReqBean model);

	List<EmpBreifBean> getEmployeeNotGroup(String employeeKey);

	int empGroupScript();

	List<EmployeeGroup> getSelectedEmployeeGroup(EmployeeGroup employeeGroup);

	int updateEmpGroupById(EmployeeGroup employeeGroup);

	EmpGroupTreeBean treeEmp(String orgId, String groupId);
	
	List<EmployeeGroup> getNoTeamLeaderGroup(EmployeeGroup employeeGroup);

	int investorScript();

	int imEggs();
	
	int saveRevisitEggs();
}
